/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jnetmonitor;

import java.util.ArrayList;
import java.util.Vector;
import jpcap.JpcapCaptor;
import jpcap.NetworkInterface;
import jpcap.PacketReceiver;
import jpcap.packet.Packet;
/**
 *
 * @author r1nlx0
 */
public class Util {
    

    
    public static void refreshInterfaces(ArrayList<NetworkInterface> interfaces) {
        
        NetworkInterface[] ifaces = JpcapCaptor.getDeviceList();
        for(NetworkInterface iface : ifaces) {
            System.out.println(iface.name);
            interfaces.add(iface);
        }
    }
    
}
